<?php
use yii\helpers\Url;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>接口调试首页</title>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script type="text/javascript" src="/js/Ajax141212.js"></script>
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
</head>
<body>
<style>

.topnav{
	margin:0px auto;
	height:30px;
	background:#CCC;

}

</style>



<div class="topnav">
  <div style="margin:0px auto; width:1000px; height:30px; line-height:30px;">
<div style="display:inline-block;">
  测试机(118.190.115.50)</div>
    <span style="margin-left:0px;"><a href="/user/login">login</a></span> | 
  </div>
</div>
<div style="margin:auto 0px; margin-top:10px; width:1000px;"></div>


<table align="center" width="1000" cellpadding="0" cellspacing="1" style="border:1px solid #CCC">
  <tr bgcolor="#EEE" height="24">
    <td colspan="3">客户端模式(client)</td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td width="300"><a href="<?php echo Url::to(['client/token'])?>" target="_blank">获取TOKEN</a></td>
    <td><?php echo Url::to(['client/token'])?></a></td>
    <td></td>
  </tr>
</table>
<br>
<table align="center" width="1000" cellpadding="0" cellspacing="1" style="border:1px solid #CCC">
  <tr bgcolor="#EEE" height="24">
    <td colspan="3">授权码模式(authorize)</td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td><a href="<?php echo Url::to(['client/authorize-code'])?>" target="_blank">获取authorize_code</a></td>
    <td><?php echo Url::to(['client/authorize-code'])?></a></td>
    <td></td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td><a href="<?php echo Url::to(['client/token-by-authorize'])?>" target="_blank">code换取token</a></td>
    <td><?php echo Url::to(['client/token-by-authorize'])?></a></td>
    <td></td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td><a href="<?php echo Url::to(['client/authorize'])?>" target="_blank">以上两步合一</a></td>
    <td><?php echo Url::to(['client/authorize'])?></a></td>
    <td></td>
  </tr>
</table>
<br>
<table align="center" width="1000" cellpadding="0" cellspacing="1" style="border:1px solid #CCC">
  <tr bgcolor="#EEE" height="24">
    <td colspan="3">使用示例</td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td width="200"><a href="<?php echo Url::to(['client/product-list'])?>" target="_blank">产品列表</a></td>
    <td><?php echo Url::to(['client/product-list'])?></a></td>
    <td>AUTH</td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td width="200"><a href="/info/view?apiid=22" target="_blank">渔汛查看</a></td>
    <td>http://yuxun.aidiaowu.com:8083/v1/info/view</a></td>
    <td>AUTH</td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td width="200"><a href="/info/create?apiid=23" target="_blank">渔汛发布</a></td>
    <td>http://yuxun.aidiaowu.com:8083/v1/info/create</a></td>
    <td>AUTH</td>
  </tr>
</table>

</body>
</html>